package com.whirl.basic.service;

import com.whirl.basic.query.BaseQuery;
import com.whirl.basic.utils.PageList;


import java.util.List;

/**
 * @author xiaowei
 * @date 2022/6/27 14:00
 */
public interface BaseService<T> {
    void insert(T t);

    void deleteById(Long id);

    void update(T t);

    T selectById(Long id);

    List<T> selectAll();

    PageList<T> queryPage(BaseQuery query);

    void patchDelete(List<Long> ids);
}
